package com.zhixing.order.domain.dto;

import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import java.math.BigDecimal;

@Data
public class OrderGrabInfoDTO {

    /**
     * 订单id
     * @example 1
     */
    @NotNull(message = "订单id不能为空")
    private Long id;

    /**
     * 司机id
     * @example 1
     */
    @NotNull(message = "司机id不能为空")
    private Integer driverId;

    /**
     * 预估收入
     * @example 10
     */
    @NotNull(message = "预估收入不能为空")
    @DecimalMin(value = "0", message = "预估收入不能小于0")
    private BigDecimal estimateIncome;
}
